<?php
//路由配置
Fend_Di::factory()->set('router',array(
    'www.test.com'=>'/',
));
Fend_Di::factory()->set('env','debug');//是否是线上环境debug开发环境,line线上环境
if(!empty($_GET['debug'])){
    !defined('DEBUG') && define('DEBUG',1);
    ini_set('display_errors','on');//开启或关闭PHP异常信息
    date_default_timezone_set('Asia/Shanghai');
    error_reporting(E_ALL & ~E_NOTICE);//异常级别设置
    error_reporting(E_ALL);//异常级别设置
}
$strurl = isset($_SERVER['REQUEST_URI'])?strtok($_SERVER['REQUEST_URI'], '?'):'';
$strurl = str_replace('.html', '', $strurl);
$module = explode('/', $strurl);
